package com.wl.application.config;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author wl
 * @version 1.0
 * @date 2022/7/28
 * @description: 全局异常处理器
 */
@RestControllerAdvice
public class MyExceptionHandler{
    @ExceptionHandler(Exception.class)
    public String allException(Exception e){
        return "出现错误啦！！客户端【全局异常处理器】";
    }

}
